package com.example.demo.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<User,Long> {
    List<User> findByEmail(String email);
    List<User> findByPhoneNumber(String phoneNumber);
    User findByName(String name);
    User findByAccount(String account);
}
